<?php

namespace App\Http\Controllers;

use App\Models\FeedbackComment;
use Illuminate\Http\Request;

class FeedbackCommentController extends BaseController
{
    public function store(Request $request)
    {
        $param = $this->validate($request,[
            'content' =>  'required|max:800'
        ]);

        $param['user_id'] =  auth('api')->id();


        $model =  FeedbackComment::query()->create($param);

        if ($model->getKey()){
            return $this->success();
        }

        return  $this->error();
    }
}
